import request from "./resquest";
//寄件
export const reqSendpiece = (params) => request.post("/Sendpiece", params);
//查询运单
export const reqWaybill = (cid) => request.get(`/Waybill?cid=${cid}`);
//省
export const reqProvince = () => request.get(`/Networkpointprovince`);
//市
export const reqCity = (province) =>
  request.get(`/Networkpointcity?province=${province}`);
//区
export const reqDistrict = (city) =>
  request.get(`/Networkpointdistrict?city=${city}`);
//站点
export const reqName = (district) =>
  request.get(`/Networkpointname?district=${district}`);
//查询运费
export const reqFreight = (params) => request.post(`/Freight`, params);
//登录
export const reqLogin = (params) => request.post(`/login`, params);
//注册
export const reqRegister = (params) => request.post(`/Register`, params);
//新闻
export const reqNews = (limt = 2) => request.get(`/news?limt=${limt}`);
//vip
export const reqVip = (user) => request.get(`/vip?user=${user}`);
